<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .all {
            width: 800px;
            background-color: rgb(43, 226, 198);
            height: 700px;
            margin: 0 auto;
        }

        .total {
            width: 800px;
            height: 100px;
            background-color: rgba(221, 43, 206, 0.76);
            display: flex;
        }

        .left {
            display: flex;
        }

        .text_left {
            width: 600px;
            height: 600px;
            background-color: aquamarine;

        }

        .text_right {
            width: 200px;
            height: 600px;
            background-color: rgba(28, 225, 236, 0.04);

        }

        #textarea {
            height: 450px;
            background-color: rgb(55, 227, 239);
        }

        #shuru {
            height: 146px;
            width: 600px;
        }

        .username {
            line-height: 100px;
            padding-left: 10px;
            color: white;
        }

        .state {
            line-height: 100px;
            justify-content: end;
            margin-left: 665px;
            color: rgb(17, 225, 173);
        }

        .doing {
            line-height: 170px;
            margin-left: -500px;
            font-size: 14px;
            color: aqua
        }

        .friend {
            color: firebrick;
            border-bottom: 1px solid gray;
            padding-bottom: 5px;
            padding-left: 20px;
        }

        #send {
            display: inline-block;
            width: 50px;
            height: 37px;
            background-color: rgb(218, 22, 185);
            line-height: 37px;
            margin-left: 540px;
            border-radius: 6px;
            text-align: center;
            cursor: pointer;
        }

        .liebiao {
            height: 200px;
            padding-left: 10px;
            padding-top: 10px;
        }

        .guangbo {
            font-size: 14px;
            padding-left: 10px;
            padding-top: 10px;
            color: gray;
        }
    </style>
</head>

<body>
    <div class="all">

        <div class="total">
            <p class="username">用户：王源</p>
            <p class="state">在线</p>
            <p class="doing">正在和 王俊凯 聊天</p>
        </div>
        <div class="left">
            <div class="text_left">
                <p id="textarea">你好呀，王源儿</p>
                <p><input type="text" name="" id="shuru" placeholder="在此输入文字信息..."><span id="send">发送</span></p>
            </div>

            <div class="right">
                <div class="text_right">
                    <p class="friend">好友列表</p>
                    <p class="liebiao">王俊凯</p>
                    <p class="friend">系统广播</p>
                    <p class="guangbo">您的好友 王俊凯 已上线</p>
                </div>
            </div>
        </div>
    </div>
</body>

</html>